<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    .footer {
        width: 100%;
        height: 50px;
        background: pink;
    }
    
    .footer p {
        height: 50px;
        line-height: 50px;
        text-align: left;
        padding-left: 50px;
    }
</style>

<body>
    <div th:fragment="footer">
        <div class="footer">
            <p>
                @2020-2021版权属于coderwyq
            </p>
        </div>
    </div>
</body>

</html>